<!DOCTYPE html>
<html >
<head>
    <meta charset="utf-8"/>
    <title>笑话管理</title>
    <meta name="keywords" content="manager,personal,manage"/>
    <meta name="description" content="用户,管理员,管理员管理"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <link rel="stylesheet" href="./assets/css/validationEngine.jquery.css" type="text/css">
    <link rel="stylesheet" href="./assets/css/datepicker.css"/>
    <style>
        table{
            table-layout:fixed;
        }
        td{
            overflow:hidden;
            text-overflow:ellipsis;
            white-space:nowrap;
        }
        @media screen and (min-width:768px){
            .modal-dialog{
                right:auto;left:50%;width:690px;padding-top:30px;padding-bottom: 30px;
            }
        }
    </style>
    <script src="./assets/js/jquery.validationEngine-zh_CN.js"></script>
    <script src="./assets/js/jquery.validationEngine.js"></script>
</head>
<body>
<div class="page-content">
    <div class="row">
        <div class="col-xs-12">
            <form id="stationFormId" class="form-horizontal" role="form">
                <div class="input-group input-group-sm input-group-sm3">
                    <span class="input-group-addon group-addon">关键内容</span>
                    <span class="spanIcons"></span>
                    <input type="text" class="form-control form-control-two" id="jokeContent">
                </div>
                <div class="input-group input-group-sm input-group-sm3">
                    <span class="input-group-addon group-addon">笑话类型</span>
                    <span class="spanIcons"></span>
                    <select class="selectClassify form-control form-control-two" id="jokeType">
                        <option></option>
                        <option value="0">文本</option>
                        <option value="1">文本+图片</option>
                        <option value="2">文本+视频</option>
                    </select>
                </div>
                <div class="input-group input-group-sm input-group-sm3">
                    <span class="input-group-addon group-addon">笑话状态</span>
                    <span class="spanIcons"></span>
                    <select class="selectClassify form-control form-control-two" id="jokeStatus">
                        <option></option>
                        <option value="0">有效</option>
                        <option value="1">无效</option>
                    </select>
                </div>

                <div class="input-group input-group-sm input-group-sm3">
                    <span class="input-group-addon group-addon">创建日期</span>

                    <input class="form-control date-picker form-control-three" id="startdate"
                           type="text" data-date-format="yyyy-mm-dd" style="margin-left: 29px;"/>
                    <span class="positi"> 至 </span>
                    <input class="form-control date-picker form-control-four" id="enddate"
                           type="text" data-date-format="yyyy-mm-dd"/>
                    <span>&nbsp;</span>

                    <button id="dataSearch" type="button" class="btn btn-primary btn-sm" title="查询">
                        <i class="icon-search nav-search-icon"></i>
                    </button>
                    <button id="dataadd" type="button" class="btn btn-primary btn-sm"
                    data-toggle="modal" data-target="#addModal" title="笑话添加">
                    <i class="icon-plus-sign bigger-120"></i>
                    </button>
                    <button id="datajoke" type="button" class="btn btn-primary btn-sm"
                            data-toggle="modal" data-target="#jokeModal" disabled
                            title="笑话详情">
                        <i class="icon-list bigger-130"></i>
                    </button>
                    <!--<button id="datachange" type="button" class="btn btn-sm btn-success"-->
                    <!--data-toggle="modal" data-target="#updateModal" disabled-->
                    <!--title="服务修改">-->
                    <!--<i class="icon-pencil bigger-130"></i>-->
                    </button>
                    <button id="datadelete" type="button" class="btn btn-sm btn-danger"
                            data-toggle="modal" data-target="#deleteModal" disabled
                            title="笑话删除">
                        <i class="icon-trash bigger-130"></i>
                    </button>
                    <!-- </div>	 -->
                </div>
            </form>

            <div class="row" style="margin-top: 0px;">
                <div class="col-xs-12">
                    <!-- PAGE CONTENT BEGINS -->
                    <table id="joke_table" class="table"></table>
                    <!-- PAGE CONTENT ENDS -->
                </div>
                <!-- /.col -->
            </div>
        </div>
    </div>
    <!-- /.row -->
</div>
<!-- /.page-content -->
<!-- 添加的modal start-->
<div class="modal fade bs-example-modal-lg" id="addModal">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"
                        aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
                <h4 class="modal-title" id="exampleModalLabel">管理员添加</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal" id="addForm" data-type="addAdmin">
                    <div class="form-group">
                        <label class="col-sm-2 control-label">姓名</label>
                        <div class="col-sm-10">
                            <input type="text" class="validate[required] form-control"
                                   name="name" placeholder="请输入姓名">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 control-label">帐号</label>
                        <div class="col-sm-10">
                            <input type="text"
                                   class="validate[required,custom[numberOfLetter,notSpaceNumber],minSize[2],maxSize[20],custom[notSpaceNumber]]  form-control"
                                   name="account" placeholder="请输入帐号">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 control-label">密码</label>
                        <div class="col-sm-10">
                            <input type="password" id="password" class="validate[required,minSize[6],maxSize[12],custom[notSpaceNumber]] form-control"
                                   name="password" placeholder="请输入密码">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 control-label">确认密码</label>
                        <div class="col-sm-10">
                            <input type="password" id="confirm_password" class="form-control validate[required,equals[password],custom[notSpaceNumber]]"
                                   name="confirmPassword" placeholder="请再次输入密码">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 control-label">所属车站</label>
                        <div class="col-sm-3">
                            <select class=" form-control selectAllStation" name="belongId">
                            </select>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 control-label">角色权限</label>
                        <div class=" col-sm-10 roleCheckBoxs" style="padding-top: 4px;">

                        </div>
                    </div>
                    <div class="form-group ">
                        <label class="col-sm-2 control-label ">性别</label>
                        <div class="col-sm-10 "
                             style="padding-left: 0px; padding-top: 0px; margin-top: -5px;">
                            <div class="radio col-sm-2" style="padding-left: 10px;">
                                <label> <input name="gender" type="radio" value="1001"
                                               checked     class="ace"/> <span class="lbl"> 男</span>
                                </label>
                            </div>
                            <div class="radio col-sm-2 " style="padding-left: 0px;">
                                <label> <input name="gender" type="radio" value="1002"
                                               class="ace"/> <span class="lbl"> 女</span>
                                </label>
                            </div>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 control-label">状态</label>
                        <div class="col-sm-3" >
                            <select class="form-control " name="adminState" >
                                <option value="3001" selected="selected">正常</option>
                                <option value="3002">锁定</option>
                            </select>
                        </div>
                    </div>
                </form>

            </div>
            <div class="modal-footer">
                <!--<button class="btn btn-primary" form="addForm">保存</button>-->
                <button type="button" class="btn btn-primary" name="submit" data-type="add">保存</button>
                <!--  <button type="reset" class="btn btn-warnning">重置</button> -->
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>

            </div>
        </div>
    </div>
</div>
<!-- 添加的modal end-->

<!-- 笑话内容的modal start-->
<div class="modal fade" id="jokeModal" tabindex="-1" role="dialog"
     aria-labelledby="exampleModalLabel">
    <div id="modalDialog" class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"
                        aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
                <h4 class="modal-title" id="exampleModalLabel">笑话内容</h4>
            </div>
            <div class="modal-body">
                <!--<table id="reportReason_table" class="table"></table>-->
            </div>
        </div>
    </div>
</div>
<!-- 举报原因的modal end-->

<!-- 删除的modal start-->
<div class="modal fade" id="deleteModal" tabindex="-1">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"
                        aria-label="Close">
                    <span aria-hidden="true">×</span>
                </button>
                <h4 class="modal-title" id="myModalLabel">删除任务</h4>
            </div>
            <!--Form的id为myForm-->
            <form id="deleteForm" data-type="deleteAdmin">
                <div class="modal-body"></div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                    <!--<button type="submit" class="btn btn-primary">确认</button>-->
                    <button type="button" class="btn btn-primary" name="submit" data-type="delete">确认</button>
                </div>
            </form>
        </div>
    </div>
</div>
<!-- 删除的modal end-->
<script src="./assets/js/date-time/bootstrap-datepicker.min.js"></script>
<script src="script/joke.js"></script>
</body>
</html>
